package org.mail.xx;

import org.springframework.boot.autoconfigure.condition.ConditionalOnBean;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
@ConditionalOnBean(annotation = EnableMailAutoConfig.class)
public class MailAutoConfiguration {
    @Bean
    public MailService getEatBean(){
        return new MailService();
    }
}